<!doctype html>
<html <?php language_attributes(); ?>>
<head>
<?php
/** Themify Default Variables
 @var object */
	global $themify; ?>
<meta charset="<?php bloginfo( 'charset' ); ?>">

		<?php  include 'shadela-includes/qq_sina.php'; ?>


<title><?php if (is_home() || is_front_page()) { echo bloginfo('name'); } else { echo wp_title(''); } ?></title>

<?php
/**
 *  Stylesheets and Javascript files are enqueued in theme-functions.php
 */
?>

<!-- wp_header -->
<?php wp_head(); ?>

</head>

<body <?php body_class(); ?>>

<?php themify_body_start(); //hook ?>


	<div id="headerwrap">

		<?php themify_header_before(); //hook ?>
		<!--  --><header id="header" class="pagewidth">
        	<?php themify_header_start(); //hook ?>
            
			<hgroup>
				<?php if(themify_get('setting-site_logo') == 'image' && themify_check('setting-site_logo_image_value')){ ?>
					 <?php echo $themify->logo_image(); ?>
				<?php } else { ?>
					 <h1 id="site-logo"><a href="<?php echo home_url(); ?>/"><img src="<?php echo get_option('home'); ?>/wp-content/themes/pinboard/images/logo2.png"  /></a></h1>
				<?php } ?>
			</hgroup> 

			<nav id="main-nav-wrap">
				<div id="menu-icon" class="mobile-button"></div>
				<?php if (function_exists('wp_nav_menu')) {
				//	wp_nav_menu(array('theme_location' => 'main-nav' , 'fallback_cb' => 'themify_shadela_main_nav' , 'container'  => '' , 'menu_id' => 'main-nav' , 'menu_class' => 'main-nav'));
					themify_shadela_main_nav();
				} else {
					themify_shadela_main_nav();
				} ?>
			</nav>
			<!-- /#main-nav -->
			
			<div id="social-wrap">
				<div id="searchform-wrap">
					<div id="search-icon" class="mobile-button"></div>
					
					<?php if(!themify_check('setting-exclude_search_form')): ?>
						<?php get_search_form(); ?>
					<?php endif ?>
				</div>
				<!-- /searchform-wrap -->
		
				<div class="social-widget">
					<?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar('social-widget') ) ?>
		
					<?php if(!themify_check('setting-exclude_rss')): ?>
						<div class="rss"><a href="<?php if(themify_get('setting-custom_feed_url') != ""){ echo themify_get('setting-custom_feed_url'); } else { echo bloginfo('rss2_url'); } ?>">RSS</a></div>
					<?php endif ?>
				</div>
				<!-- /.social-widget -->
			</div>
            
           
            <?php themify_header_end(); //hook ?>
	<!--  -->	</header>
		<!-- /#header -->
        <?php themify_header_after(); //hook ?>
				
	</div>
	<!-- /#headerwrap -->
	<div id="pagewrap">
	<div id="body" class="clearfix">
    <?php themify_layout_before(); //hook ?>
 